Version:0.9
StartHTML:0000000105
EndHTML:0000025148
StartFragment:0000003350
EndFragment:0000025132
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="SynEdit HTML exporter" />
<style type="text/css">
<!--
body { color: #000000; background-color: #FFFFFF; }
.webhtml1-cssclassselector { color: #0080C0; font-weight: bold; }
.webhtml1-csscomment { color: #A0A0A4; font-style: italic; }
.webhtml1-csserror { color: #FF0000; font-weight: bold; text-decoration: underline; }
.webhtml1-cssidselector { color: #008000; font-weight: bold; }
.webhtml1-cssnumbervalue { color: #008000; }
.webhtml1-cssproperty { color: #0000FF; }
.webhtml1-cssrulesetwhitespace { }
.webhtml1-cssselector { color: #0000FF; font-weight: bold; }
.webhtml1-cssspecial { color: #000080; }
.webhtml1-cssstringvalue { color: #FF00FF; }
.webhtml1-csssymbol { color: #000000; }
.webhtml1-cssundefinedproperty { color: #0000FF; text-decoration: underline; }
.webhtml1-cssundefinedselector { color: #0000FF; font-weight: bold; text-decoration: underline; }
.webhtml1-cssundefinedvalue { color: #FF0000; text-decoration: underline; }
.webhtml1-cssvalue { color: #FF0000; }
.webhtml1-csswhitespace { }
.webhtml1-escomment { color: #008000; }
.webhtml1-eserror { color: #FF0000; font-weight: bold; text-decoration: underline; }
.webhtml1-esidentifier { color: #0000FF; }
.webhtml1-eskey { font-weight: bold; }
.webhtml1-esnumber { color: #FF00FF; }
.webhtml1-esstring { color: #FF0000; }
.webhtml1-essymbol { }
.webhtml1-eswhitespace { }
.webhtml1-globalinactive { color: #D4D0C8; }
.webhtml1-mlcomment { color: #A0A0A4; }
.webhtml1-mlerror { color: #FF0000; font-weight: bold; text-decoration: underline; }
.webhtml1-mlescapedamps { color: #008080; }
.webhtml1-mlkey { color: #FF0000; }
.webhtml1-mlquotedvalue { color: #FF00FF; }
.webhtml1-mlsymbol { color: #000000; }
.webhtml1-mltag { color: #000080; }
.webhtml1-mltagname { color: #0000FF; }
.webhtml1-mltext { }
.webhtml1-mlundefinedkey { color: #FF0000; text-decoration: underline; }
.webhtml1-mlundefinedtagname { color: #0000FF; text-decoration: underline; }
.webhtml1-mlvalue { color: #FF00FF; }
.webhtml1-mlwhitespace { }
.webhtml1-phpcomment { color: #800080; font-style: italic; }
.webhtml1-phpconstant { color: #FF7000; font-weight: bold; }
.webhtml1-phpdoccomment { color: #008000; font-weight: bold; font-style: italic; }
.webhtml1-phpdoccommenttag { color: #0000FF; font-weight: bold; font-style: italic; }
.webhtml1-phperror { color: #DD0000; font-weight: bold; text-decoration: line-through; }
.webhtml1-phpfunction { color: #0000FF; }
.webhtml1-phpidentifier { color: #000080; }
.webhtml1-phpkeyword { color: #006600; }
.webhtml1-phpmethod { color: #0080FF; }
.webhtml1-phpnumber { color: #800000; }
.webhtml1-phpstring { color: #FF0000; }
.webhtml1-phpstringspecial { color: #FF00FF; }
.webhtml1-phpsymbol { color: #FF8000; }
.webhtml1-phpvariable { color: #8080FF; }
.webhtml1-phpwhitespace { }
.webhtml1-phpcliinlinetext { color: #80FF80; }
-->
</style>
</head>
<body>
<!--StartFragment--><pre><code><span class="webhtml1-mltag">&lt;!</span><span class="webhtml1-mltagname">DOCTYPE</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-mlkey">HTML</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-mlkey">PUBLIC</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-mlquotedvalue">&quot;-//W3C//DTD HTML 4.01//EN&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-mlquotedvalue">&quot;http://www.w3.org/TR/html4/strict.dtd&quot;</span><span class="webhtml1-mltag">&gt;
&lt;?</span><span class="webhtml1-phpkeyword">php
require_once</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpstring">&quot;include.php&quot;</span><span class="webhtml1-phpsymbol">);
</span><span class="webhtml1-phpkeyword">require_once</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpstring">&quot;sorderobj.php&quot;</span><span class="webhtml1-phpsymbol">);
</span><span class="webhtml1-phpkeyword">require_once</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpstring">&quot;class.ezpdf.php&quot;</span><span class="webhtml1-phpsymbol">);
</span><span class="webhtml1-phpfunction">session_start</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-phpkeyword">require_once</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpstring">&quot;showmenu.php&quot;</span><span class="webhtml1-phpsymbol">);
</span><span class="webhtml1-phpkeyword">require_once</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpstring">&quot;pdfsorder.php&quot;</span><span class="webhtml1-phpsymbol">);
</span><span class="webhtml1-phpcomment">//authorise(&quot;userinput&quot;);
</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">isset</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;restart&quot;</span><span class="webhtml1-phpsymbol">]))</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">?</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">restart</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;restart&quot;</span><span class="webhtml1-phpsymbol">]</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">:</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">restart</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;NULL&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">;
(</span><span class="webhtml1-phpkeyword">isset</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;res&quot;</span><span class="webhtml1-phpsymbol">]))</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">?</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">res</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;res&quot;</span><span class="webhtml1-phpsymbol">]</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">:</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">res</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;NULL&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">;
(</span><span class="webhtml1-phpkeyword">isset</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;sub&quot;</span><span class="webhtml1-phpsymbol">]))</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">?</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">sub</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;sub&quot;</span><span class="webhtml1-phpsymbol">]</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">:</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">sub</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;NULL&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">;
(</span><span class="webhtml1-phpkeyword">isset</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;itemid&quot;</span><span class="webhtml1-phpsymbol">]))</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">?</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">itemid</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_REQUEST</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;itemid&quot;</span><span class="webhtml1-phpsymbol">]</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">:</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">itemid</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;NULL&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">;


</span><span class="webhtml1-phpkeyword">if</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(!(</span><span class="webhtml1-phpkeyword">isset</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_SESSION</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;sorder&quot;</span><span class="webhtml1-phpsymbol">])))</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">=</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">new</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpidentifier">sorder</span><span class="webhtml1-phpsymbol">();}
</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">=&amp;</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_SESSION</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;sorder&quot;</span><span class="webhtml1-phpsymbol">]</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">;
</span><span class="webhtml1-phpkeyword">if</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">header</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpnumber">2</span><span class="webhtml1-phpsymbol">]</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">!==</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;&quot;</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpcomment">// have already read or created an item
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">applyfromrequest</span><span class="webhtml1-phpsymbol">();

</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">if</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">sub</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">==</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;Save&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">&amp;&amp;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">valid</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">writedb</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">confirmfiled</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_SESSION</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpstring">&quot;lastid&quot;</span><span class="webhtml1-phpsymbol">]);
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">elseif</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">sub</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">==</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;Print&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">&amp;&amp;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">valid</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">echo</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">makehtml</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">writedb</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">localprint</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">elseif</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">sub</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">==</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;Email&quot;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">&amp;&amp;</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">valid</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">emailpdf</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">writedb</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">elseif</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">res</span><span class="webhtml1-phpsymbol">==</span><span class="webhtml1-phpstring">&quot;restart&quot;</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">unset</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">_SESSION</span><span class="webhtml1-phpsymbol">[</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">gettablename</span><span class="webhtml1-phpsymbol">()]);
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">elseif</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">sub</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">==</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;Abandon Changes&quot;</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">showform</span><span class="webhtml1-phpsymbol">();</span><span class="webhtml1-mlwhitespace">  
 </span><span class="webhtml1-phpsymbol">}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">else</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpcomment">// Default is apply button, or might be refresh/back etc.
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">showform</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">}
}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">elseif</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">itemid</span><span class="webhtml1-phpsymbol">==</span><span class="webhtml1-phpstring">&quot;&quot;</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpcomment">// request to set up a new item
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">createblank</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">showform</span><span class="webhtml1-phpsymbol">();
}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">elseif</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">itemid</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">==</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpstring">&quot;NULL&quot;</span><span class="webhtml1-phpsymbol">)</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpcomment">// First call to routine
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">showchoose</span><span class="webhtml1-phpsymbol">();
}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">else</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpcomment">// try reading the specific item. We have been supplied with an itemid
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">if</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">readdb</span><span class="webhtml1-phpsymbol">(</span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">itemid</span><span class="webhtml1-phpsymbol">))</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">showform</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">}</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpkeyword">else</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">{
</span><span class="webhtml1-mlwhitespace">  </span><span class="webhtml1-phpkeyword">$</span><span class="webhtml1-phpvariable">obj</span><span class="webhtml1-phpsymbol">-&gt;</span><span class="webhtml1-phpmethod">showchoose</span><span class="webhtml1-phpsymbol">();
</span><span class="webhtml1-mlwhitespace"> </span><span class="webhtml1-phpsymbol">}</span><span class="webhtml1-mlwhitespace"> 
</span><span class="webhtml1-phpsymbol">}
</span><span class="webhtml1-mltag">?&gt;
</span></code></pre><!--EndFragment--></body>
</html>